package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.BusinessSalesMonth;
import cn.stylefeng.guns.sys.modular.system.model.params.BusinessSalesMonthParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BusinessSalesMonthResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangge
 * @since 2021-06-04
 */
public interface BusinessSalesMonthService extends IService<BusinessSalesMonth> {

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2021-06-04
     */
    void add(BusinessSalesMonthParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2021-06-04
     */
    void delete(BusinessSalesMonthParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2021-06-04
     */
    void update(BusinessSalesMonthParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-06-04
     */
    BusinessSalesMonthResult findBySpec(BusinessSalesMonthParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2021-06-04
     */
    List<BusinessSalesMonthResult> findListBySpec(BusinessSalesMonthParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-06-04
     */
     LayuiPageInfo findPageBySpec(BusinessSalesMonthParam param);

    void insertData(String lastMonth, List<Map<String, Object>> businessDataByParam);

}
